-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use GOMEMLIMIT to reduce the likelihood of an OOM issue #2124
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for pinniped-dev canceled.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2124 +/- ##
=======================================
Coverage 31.28% 31.28%
=======================================
Files 371 371
Lines 61131 61131
=======================================
+ Hits 19124 19127 +3
+ Misses 41482 41480 -2
+ Partials 525 524 -1 ☔ View full report in Codecov by Sentry. |
Some interesting advice from the Go maintainers:
|
Good findings! It's possible for an application to set this value (and retrieve this value) using https://pkg.go.dev/runtime/debug#SetMemoryLimit. I wonder if we could add a log statement to retrieve the value. |
I've been thinking about this, and we could likely make this about as complex as we want to make it. We may not need to take any action, it's pretty rare that we've ever seen Supervisor or Concierge Perhaps the immediate way to get benefit here is that we could accommodate some memory headroom in the Pinniped deployments by setting For other deployment mechanisms, we have no control over what they set for Quick note about units: |
Use GOMEMLIMIT to reduce the likelihood of an OOM issue
Fixes #1103